// # 当前系统对应小程序的source
// VITE_WX_SOURCE=13
//
// VITE_APP_DEFAULT_SOURCE=xsj
// # 班课签到websocket服务器
// VITE_WS_HOST=

const APP_ENV_CONFIG = {
  xsj: {
    key: 'xsj',
    title: '班课系统',
    logo: '/images/xsj-logo.png',
    source: '13',
    ico:'/favicon-xsj.ico',
    ws_host: 'ws://120.224.9.197:10010',
  },
  cxg: {
    key: 'cxg',
    title: '班课系统',
    logo: '/images/cxg-logo.png',
    source: '14',
    ico:'/favicon-cxg.ico',
    ws_host: 'ws://120.224.9.197:10510',
  }
}

const appEnvKey = ref(import.meta.env.MODE)

const appEnv = computed(() => APP_ENV_CONFIG[unref(appEnvKey)] || APP_ENV_CONFIG['xsj'])


export const useAppEnvStoreRef = () => {
  return {
    appEnv
  }
}
